package jp.co.technotree.apl.dao.systemlog;
import java.util.ArrayList;


@SuppressWarnings("rawtypes")
public class StatementValue {
	public int type = 0;
	public String strAppend = null;
	public String strValue = null;
	public ArrayList arrayValue = null;
	
	/**
	 * 
	 * @param strAppend
	 * @param strValue
	 */
	public StatementValue(String strAppend,String strValue){
		this.type=1;
		this.strAppend=strAppend;
		this.strValue=strValue;
	}
	
	/**
	 * 
	 * @param strAppend
	 * @param arrayValue
	 */
	public StatementValue(String strAppend,ArrayList arrayValue){
		this.type=2;
		this.strAppend=strAppend;
		this.arrayValue=arrayValue;
	}
	
	public String getAppend(){
		return this.strAppend;
	}
	
	public Object getValue(){
		if ( this.type == 1 ){
			return this.strValue;
		}else if ( this.type == 2 ){
			return this.arrayValue;
		}
		return null;
	}
	
}
